package com.hotel.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.hotel.entity.Authority;

public interface AuthorityMapper {
    int deleteByPrimaryKey(Integer authorityId);

    int insert(Authority record);

    int insertSelective(Authority record);

    Authority selectByPrimaryKey(Integer authorityId);

    int updateByPrimaryKeySelective(Authority record);

    int updateByPrimaryKey(Authority record);
    
    /**
	  * 查询全部权限
	  * @return
	  */
    List<Authority> findAllAuthoritys(@Param(value="pageNo")Integer pageNo,@Param(value="pageSize")Integer pageSize);
  
}